package com.example.blue.musicplay.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import com.example.blue.musicplay.R;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;

/**
 * Created by blue on 2016/9/19.
 */

public class SearchActivity extends AppCompatActivity {

    @ViewInject(R.id.search_music_edit)
    private EditText search_edit ;
    @ViewInject(R.id.search_music_image)
    private ImageView imageView_search ;
    @ViewInject(R.id.music_search_toolbar)
    private Toolbar music_search_toolbar;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_activity);
        com.lidroid.xutils.ViewUtils.inject(this);
        music_search_toolbar.setTitle("搜索音乐");
        setSupportActionBar(music_search_toolbar);
    }
    @OnClick({R.id.search_music_image,R.id.search_music_edit})
    private void search_onclick(View view) {
        switch (view.getId()) {
            case R.id.search_music_edit:
                break;
            case R.id.search_music_image:
                break;
        }
    }
}
